package org.slf4j.impl;

import maksb.logger.LoggerLevel;
import maksb.logger.MyLogger;

import org.slf4j.Logger;
import org.slf4j.Marker;

public class MyLoggerAdapter implements Logger {
    private final String name;
    private MyLogger logger;
        
    public MyLoggerAdapter(String name) {
        this.name = name;
        logger = new MyLogger(name);
    }

    public String getName() {
        return name;
    }

    public boolean isTraceEnabled() {
        return logger.isTraceEnabled();
    }

    public void trace(String msg) {
        logger.log(LoggerLevel.TRACE, msg);
    }

    public void trace(String format, Object arg) {
        logger.log(LoggerLevel.TRACE, format, arg);
    }


    public void trace(String format, Object arg1, Object arg2) {
        logger.log(LoggerLevel.TRACE, format, arg1, arg2);
    }

    public void trace(String format, Object... arguments) {
        logger.log(LoggerLevel.TRACE, format, arguments);
    }

    public void trace(String msg, Throwable t) {
        logger.log(LoggerLevel.TRACE, msg, t);
    }

    public boolean isTraceEnabled(Marker marker) {
        throw new UnsupportedOperationException();
    }

    public void trace(Marker marker, String msg) {
        throw new UnsupportedOperationException();
    }

    public void trace(Marker marker, String format, Object arg) {
        throw new UnsupportedOperationException();
    }

    public void trace(Marker marker, String format, Object arg1, Object arg2) {
        throw new UnsupportedOperationException();
    }

    public void trace(Marker marker, String format, Object... argArray) {
        throw new UnsupportedOperationException();        
    }

    public void trace(Marker marker, String msg, Throwable t) {
        throw new UnsupportedOperationException();        
    }

    public boolean isDebugEnabled() {
        return logger.isDebugEnabled();
    }

    public void debug(String msg) {
        logger.log(LoggerLevel.DEBUG, msg);
    }

    public void debug(String format, Object arg) {
        logger.log(LoggerLevel.DEBUG, format, arg);
    }

    public void debug(String format, Object arg1, Object arg2) {
        logger.log(LoggerLevel.DEBUG, format, arg1, arg2);
    }

    public void debug(String format, Object... arguments) {
        logger.log(LoggerLevel.DEBUG, format, arguments);
    }

    public void debug(String msg, Throwable t) {
        logger.log(LoggerLevel.DEBUG, msg, t);
    }

    public boolean isDebugEnabled(Marker marker) {
        throw new UnsupportedOperationException();
    }

    public void debug(Marker marker, String msg) {
        throw new UnsupportedOperationException();
    }

    public void debug(Marker marker, String format, Object arg) {
        throw new UnsupportedOperationException();        
    }

    public void debug(Marker marker, String format, Object arg1, Object arg2) {
        throw new UnsupportedOperationException();        
    }

    public void debug(Marker marker, String format, Object... arguments) {
        throw new UnsupportedOperationException();        
    }

    public void debug(Marker marker, String msg, Throwable t) {
        throw new UnsupportedOperationException();        
    }

    public boolean isInfoEnabled() {
        return logger.isInfoEnabled();
    }

    public void info(String msg) {
        logger.log(LoggerLevel.INFO, msg);
    }

    public void info(String format, Object arg) {
        logger.log(LoggerLevel.INFO, format, arg);
    }

    public void info(String format, Object arg1, Object arg2) {
        logger.log(LoggerLevel.INFO, format, arg1, arg2);
    }

    public void info(String format, Object... arguments) {
        logger.log(LoggerLevel.INFO, format, arguments);
    }

    public void info(String msg, Throwable t) {
        logger.log(LoggerLevel.INFO, msg, t);
    }

    public boolean isInfoEnabled(Marker marker) {
        throw new UnsupportedOperationException();
    }

    public void info(Marker marker, String msg) {
        throw new UnsupportedOperationException();        
    }

    public void info(Marker marker, String format, Object arg) {
        throw new UnsupportedOperationException();        
    }

    public void info(Marker marker, String format, Object arg1, Object arg2) {
        throw new UnsupportedOperationException();        
    }

    public void info(Marker marker, String format, Object... arguments) {
        throw new UnsupportedOperationException();        
    }

    public void info(Marker marker, String msg, Throwable t) {
        throw new UnsupportedOperationException();
        
    }

    public boolean isWarnEnabled() {
        return logger.isWarnEnabled();
    }

    public void warn(String msg) {
        logger.log(LoggerLevel.WARN, msg);
    }

    public void warn(String format, Object arg) {
        logger.log(LoggerLevel.WARN, format, arg);
    }

    public void warn(String format, Object... arguments) {
        logger.log(LoggerLevel.WARN, format, arguments);
    }

    public void warn(String format, Object arg1, Object arg2) {
        logger.log(LoggerLevel.WARN, format, arg1, arg2);
    }

    public void warn(String msg, Throwable t) {
        logger.log(LoggerLevel.WARN, msg, t);
        
    }

    public boolean isWarnEnabled(Marker marker) {
        throw new UnsupportedOperationException();
    }

    public void warn(Marker marker, String msg) {
        throw new UnsupportedOperationException();        
    }

    public void warn(Marker marker, String format, Object arg) {
        throw new UnsupportedOperationException();        
    }

    public void warn(Marker marker, String format, Object arg1, Object arg2) {
        throw new UnsupportedOperationException();        
    }

    public void warn(Marker marker, String format, Object... arguments) {
        throw new UnsupportedOperationException();        
    }

    public void warn(Marker marker, String msg, Throwable t) {
        throw new UnsupportedOperationException();
    }

    public boolean isErrorEnabled() {
        return logger.isErrorEnabled();
    }

    public void error(String msg) {
        logger.log(LoggerLevel.ERROR, msg);
    }

    public void error(String format, Object arg) {
        logger.log(LoggerLevel.ERROR, format, arg);
    }

    public void error(String format, Object arg1, Object arg2) {
        logger.log(LoggerLevel.ERROR, format, arg1, arg2);
    }

    public void error(String format, Object... arguments) {
        logger.log(LoggerLevel.ERROR, format, arguments);
    }

    public void error(String msg, Throwable t) {
        logger.log(LoggerLevel.ERROR, msg, t);
    }

    public boolean isErrorEnabled(Marker marker) {
        throw new UnsupportedOperationException();
    }

    public void error(Marker marker, String msg) {
        throw new UnsupportedOperationException();        
    }

    public void error(Marker marker, String format, Object arg) {
        throw new UnsupportedOperationException();        
    }

    public void error(Marker marker, String format, Object arg1, Object arg2) {
        throw new UnsupportedOperationException();        
    }

    public void error(Marker marker, String format, Object... arguments) {
        throw new UnsupportedOperationException();        
    }

    public void error(Marker marker, String msg, Throwable t) {
        throw new UnsupportedOperationException();        
    }

}
